/**
 * 
 */
package com.chitranshu.activities;

import android.os.Bundle;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;

/**
 * @author anshu
 * 
 */
public abstract class BottomTabActivity extends BaseTabActivity  {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		RelativeLayout relativeLayout = new RelativeLayout(this);
		LayoutParams linearLayoutParams = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
		relativeLayout.setLayoutParams(linearLayoutParams);

		
		LayoutParams tabLayoutParams = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
		tabLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
		tabLayout.setLayoutParams(tabLayoutParams);
		relativeLayout.addView(tabLayout);

		
		LayoutParams contentLayoutParam = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
		contentLayoutParam.addRule(RelativeLayout.ALIGN_PARENT_TOP);
		contentLayoutParam.addRule(RelativeLayout.ABOVE, id);
		content.setLayoutParams(contentLayoutParam);
		relativeLayout.addView(content);

		setCurrentTab(0);
		setContentView(relativeLayout);

	}

}
